package com.tdam2013.grupo07.networking;

import java.util.LinkedList;
import java.util.List;

import com.tdam2013.grupo07.mensajes.ChatMensaje;

public class QueryMessagesResponse 
{
	private List<ChatMensaje> messages;
	private boolean success;
	private int errorCode;
	private String id;
	private String errorDescription;
	private String user;
	
	public QueryMessagesResponse()
	{
		messages=new LinkedList<ChatMensaje>();
	}
	
	public List<ChatMensaje> getMessages() {
		return messages;
	}
	public void setMessages(List<ChatMensaje> messages) {
		this.messages = messages;
	}
	public boolean isSuccess() {
		return success;
	}
	public void setSuccess(boolean success) {
		this.success = success;
	}
	public int getErrorCode() {
		return errorCode;
	}
	public void setErrorCode(int errorCode) {
		this.errorCode = errorCode;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getUser() {
		return user;
	}
	public void setUser(String user) {
		this.user = user;
	}
	public String getErrorDescription() {
		return errorDescription;
	}
	public void setErrorDescription(String errorDescription) {
		this.errorDescription = errorDescription;
	}

	public void addMessage(ChatMensaje chatMessage) {
		messages.add(chatMessage);		
	}

}
